package com.olt.server.user.dto;

import com.olt.domain.user.OltPower;
import com.olt.domain.user.OltRole;
import lombok.Data;

import java.util.LinkedList;
import java.util.List;

@Data
public class PermissionDto {
    List<Long> permissionId;

    List<String>  permission;

    public PermissionDto(List<OltPower> powers){
        permissionId=new LinkedList<>();
        permission=new LinkedList<>();
        for(var i:powers){
            permission.add(i.getPowerName());
            permissionId.add(i.getPowerId());
        }
    }
}
